package lift_simulator;

public enum Direction{
	UP(0.5),DOWN(-0.5),STOP(0);
	
	private double value;
	private Direction(double value) {
		this.value = value;
	}
	
	public double getValue() {
		return value;
	}
	
	public static Direction getDirection(double currentFloor, double aimFloor){
		if(currentFloor==aimFloor)
			return STOP;
		else if(currentFloor>aimFloor)
			return DOWN;
		else
			return UP;
	}
}